<template>
	<div id="tmpl">
		<h4>{{imgs.title}}</h4>
		<hr />
		<p v-html="imgs.content"></p>
	</div>
</template>
<script>
	import commen from "../../kits/commen.js";
	export default{
		data(){
			return{
				id:'',
				imgs:'',
			}
		},
		created(){
			this.id=this.$route.params.id
			this.getlist();
		},
		methods:{
    		getlist(){
    			var url=commen.apidomain+"/api/goods/getdesc/"+this.id;
    			this.$http.get(url).then(function(response){
    				var data=response.body;
    				if(data.status!=0){
    					Toast(data.message);
    					return;
    				}
    				this.imgs=data.message[0];
    			})
    		},
    	}
	}
</script>

<style scoped>
	#tmpl{
		padding: 5px;
	}
	h4{
		color: #0094FF;
	}
</style>